
<meta charset="utf-8">
<div class="box box-primary" id="app_cloudMember_edit"
	style="max-width: 1200px;">
	<form role="form" id="editForm" class="form-horizontal">
		<div class="box-body">

			<div class="form-group">
				<label for="password" class="col-sm-2 control-label"> 输入旧密码</label>
				<div class="col-sm-10">
					<input type="password" name="oldPassword"
						v-model="cloudMember.oldPassword" class="form-control"
						id="oldPassword" required />
				</div>
			</div>
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label"> 输入新密码</label>
				<div class="col-sm-10">
					<input type="password" name="newPassword"
						v-model="cloudMember.newPassword" class="form-control"
						id="newPassword" required />
				</div>
			</div>
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">
					再次输入新密码</label>
				<div class="col-sm-10">
					<input type="password" name="repeatPassword"
						v-model="cloudMember.repeatNewPassword" class="form-control"
						id="repeatNewPassword" required />
				</div>
			</div>

			<div class="box-footer">
				<button type="button" class="btn btn-default" v-on:click="cancle">取消</button>
				<button type="button" class="btn btn-info pull-right"
					v-on:click="set">提交</button>
			</div>
	</form>

	<script type="text/javascript">
		var news = new Vue({
			el : '#app_cloudMember_edit',
			data : {
				cloudMember : {
					oldPassword : undefined,
					newPassword : undefined,
					repeatNewPassword : undefined
				},
				bus : new Vue()
			},
			methods : {
				set : function() {
					if ($("#editForm").valid()) {
						var _this = this;
						var url = "/pmp/service/ma/pmpCloudMember/setpwd";
						zfesAjax.ajaxTodo(url, _this.$data.authMenu, function(
								data) {
							alertSwal.successText(data.message);
							layer.close(layer.index);
						})
					}
				},
				cancle : function() {
					layer.close(layer.index);
				}
			}
		});
	</script>
</div>